package com.samehope.ar.service;

import com.samehope.ar.dto.PointGroupAddParam;
import com.samehope.ar.dto.PointGroupUpdateParam;
import com.samehope.ar.entity.PatrolPointGroup;
import com.baomidou.mybatisplus.extension.service.IService;
import com.samehope.ar.vo.FormSelectVO;
import com.samehope.ar.vo.TreeDataVO;

import java.util.List;

/**
 * <p>
 * 巡检点分组表 服务类
 * </p>
 *
 * @author Zhang Luo
 * @since 2019-12-23
 */
public interface IPatrolPointGroupService extends IService<PatrolPointGroup> {

    /**
     * 添加点位分组
     * @param param
     */
    Long add(PointGroupAddParam param);

    /**
     * 更新点位分组信息
     * @param param
     */
    void update(PointGroupUpdateParam param);

    /**
     * 删除点位分组
     * @param groupId
     */
    void delete(Long groupId);

    /**
     * 查询巡检点分组树结构
     * @param condition
     * @return
     */
    List<TreeDataVO> getGroupTree(String condition);

    /**
     * 巡检点分组下拉框视图对象
     * @return
     */
    List<FormSelectVO> groupsForSelect();

    /**
     * 根据点位分组名称查询点位分组信息
     * @param pointGroupName
     * @return
     */
    PatrolPointGroup findGroupByGroupName(String pointGroupName);
}
